package edu.nf.waimai.service.shop;



import edu.nf.waimai.model.shop.Shop;
import edu.nf.waimai.model.shop.waimai.WaimaiShop;

import java.util.List;

/**
 * 商家业务接口
 */
public interface ShopService {

    /**
     * 添加商家
     * @param shop
     * @return
     */
    int registerShop(Shop shop);

    /**
     * 通过名称查找全部店铺
     * @param shopName
     * @return
     */
    List<Shop> listShopByShopName(String shopName);

    /**
     * 查询全部商家
     * @return
     */
    List<Shop> listShop();

    /**
     * 分页查询全部
     * @param shop
     * @param page
     * @param limit
     * @return
     */
    List<Shop> listShopPaging(Shop shop, int page, int limit);

    /**
     * 删除店铺
     * @param shopId
     * @return
     */
    int delShop(int shopId);
    
}
